<template>
  <h1 class="header">头</h1>
</template>

<script lang="ts">
import { RouterLink, useLink } from "vue-router";
export default {
  name: "GisContainerHeader",
  props: {
    // @ts-ignore
    ...RouterLink.props,
  },

  setup(props) {
    // @ts-ignore
    const { route, href, isActive, isExactActive, navigate } = useLink(props);
    console.log(props, { route, href, isActive, isExactActive, navigate });
  },
};
</script>

<style lang="less" scoped>
.header {
  height: 60px;
  line-height: 60px;
  box-shadow: 0 0 20px -3px rgb(51 51 51 / 20%);
  border-bottom: 1px solid #eee;
  text-align: center;
}
</style>